
public class Yz extends Ti{
	private int r;
	private int h;
	public Yz(int r,int h){
		this.r=r;
	    this.h=h;
	}
	
	public int getR() {
		return r;
	}
	public void setR(int r) {
		this.r = r;
	}
	public int getH() {
		return h;
	}
	public void setH(int h) {
		this.h = h;
	}
	public double B(){
		return r*r*3.14+2*r*3.14*h;
	}
	public double V(){
		return r*r*3.14*h;
	}

}
